import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import rootReducer from './reducers'
import { getTokenInfo } from '@/utils/storege'
const store = createStore(
  rootReducer,
  { login: getTokenInfo() },
  composeWithDevTools(applyMiddleware(thunk))
)
export default store
